import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FinanceAfterSaleDetailComponent } from './finance-after-sale-detail/finance-after-sale-detail.component'
import { FinanceGatheringDetailComponent } from './finance-gathering-detail/finance-gathering-detail.component'
import { FinanceOutDetailComponent } from './finance-out-detail/finance-out-detail.component'
import { FinancePutDetailComponent } from './finance-put-detail/finance-put-detail.component'
import { FinanceDrawbackComponent } from './finance-drawback/finance-drawback.component';
import { FinanceDrawbackDetailComponent } from './finance-drawback-detail/finance-drawback-detail.component';
import { PayCustomizedCouponsComponent } from './finance-customized-manage/pay-customized-coupons/pay-customized-coupons.component';
import { FinanceSecondOrderComponent } from './finance-second-order/finance-second-order.component';
import { FinanceRecoveryOrderComponent } from './finance-recovery-order/finance-recovery-order.component';
import { FinanceMachineTestScoreComponent } from './finance-machine-test-score/finance-machine-test-score.component';
import { FinanceCustomizedSaleafterComponent } from './finance-customized-manage/finance-customized-saleafter/finance-customized-saleafter.component';
import { FinanceOldchangeListComponent } from './finance-oldchange-manage/finance-oldchange-list/finance-oldchange-list.component';
import { FinanceSecondSaleafterReportComponent } from './finance-second-pages/finance-second-saleafter-report/finance-second-saleafter-report.component';
import { FinanceSecondOrderReportComponent } from './finance-second-pages/finance-second-order-report/finance-second-order-report.component';
import { FinanceSecondPutReportComponent } from './finance-second-pages/finance-second-put-report/finance-second-put-report.component';
import { FinanceSecondOutReportComponent } from './finance-second-pages/finance-second-out-report/finance-second-out-report.component';
import { FinanceCashFlowComponent } from './finance-cash-flow/finance-cash-flow.component';

const routes: Routes = [
  // 默认访问
  { path: '', redirectTo: 'finance', pathMatch: 'full' },
  { path: 'afterSaleDetail', component: FinanceAfterSaleDetailComponent, data: { breadcrumb: '财务-售后明细' } },
  { path: 'gatheringDetail', component: FinanceGatheringDetailComponent, data: { breadcrumb: '财务-收款明细' } },
  { path: 'outDetail', component: FinanceOutDetailComponent, data: { breadcrumb: '财务-出库明细' } },
  { path: 'putDetail', component: FinancePutDetailComponent, data: { breadcrumb: '财务-入库明细' } },

  { path: 'drawback', component: FinanceDrawbackComponent, data: { breadcrumb: '财务-退税管理' } },
  { path: 'drawback-detail', component: FinanceDrawbackDetailComponent, data: { breadcrumb: '财务-退税详情' } },

  { path: 'pay-customized-coupons', component: PayCustomizedCouponsComponent, data: { breadcrumb: '爱思定制-购买定制券' } },
  { path: 'finance-customized-saleafter', component: FinanceCustomizedSaleafterComponent, data: { breadcrumb: '爱思定制-售后明细' } },

  { path: 'financeSecondOrder', component: FinanceSecondOrderComponent, data: { breadcrumb: '二手商城-订单管理' } },
  { path: 'finance-second-saleafter-report', component: FinanceSecondSaleafterReportComponent, data: { breadcrumb: '二手商城-订单报表' } },
  { path: 'finance-second-order-report', component: FinanceSecondOrderReportComponent, data: { breadcrumb: '二手商城-售后报表' } },
  { path: 'finance-second-put-report', component: FinanceSecondPutReportComponent, data: { breadcrumb: '二手商城-入库报表' } },
  { path: 'finance-second-out-report', component: FinanceSecondOutReportComponent, data: { breadcrumb: '二手商城-出库报表' } },

  { path: 'financeRecoveryOrder', component: FinanceRecoveryOrderComponent, data: { breadcrumb: '爱思回收-订单管理' } },
  
  { path: 'financeMachineTestScore', component: FinanceMachineTestScoreComponent, data: { breadcrumb: '验机分流水' } },

  { path: 'finance-oldchange-list', component: FinanceOldchangeListComponent, data: { breadcrumb: '以旧换机' } },
  { path: 'finance-cash-flow', component: FinanceCashFlowComponent, data: { breadcrumb: '现金流水' } }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ServiceRoutingModule { }
